package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;
import com.itheima.reggie.result.R;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DishService extends IService<Dish> {
     //新增菜品与口味
     void addTwo(DishDto dishDto);

     //根据id查询菜品与口味信息
     DishDto selectTwo(Long id);

     //修改菜品与口味信息
     void updateTwo(DishDto dishDto);

     //分页查询菜品与口味
     R<Page> selevtAll(int page, int pageSize, String name);

     //批量修改菜品售卖状态
     void dishStatus(Integer status, Long[] ids);

     //批量删除菜品信息
     void dishDelete(List<Long> ids);
}
